<?php
namespace Admin\Models\res;
use Admin\Models\BaseModel;
use Helpers\User;

class XhresArticlePub extends BaseModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iArtId;


    /**
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sCoverUrl;

    /**
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sCoverMobile;

    /**
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bShow;


    /**
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bTop;

    /**
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $iColumn;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iPublicTime;



    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
        $this->setSchema("xh_webmanage");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHRes_ArticlePub';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhresArticlePub[]|XhresArticlePub
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhresArticlePub
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }


}
